import request from '@/utils/request'

// 查询appletImg列表
export function listAppletImg(query) {
  return request({
    url: '/applet/appletImg/list',
    method: 'get',
    params: query
  })
}

// 查询appletImg详细
export function getAppletImg(imgId) {
  return request({
    url: '/applet/appletImg/' + imgId,
    method: 'get'
  })
}

// 新增appletImg
export function addAppletImg(data) {
  return request({
    url: '/applet/appletImg',
    method: 'post',
    data: data
  })
}

// 修改appletImg
export function updateAppletImg(data) {
  return request({
    url: '/applet/appletImg',
    method: 'put',
    data: data
  })
}

// 删除appletImg
export function delAppletImg(imgId) {
  return request({
    url: '/applet/appletImg/' + imgId,
    method: 'delete'
  })
}
